package org.zxy.org.query;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class DepartmentQuery {
    //设置默认值
    //当前页面
    private Integer currentPage = 1;
    //页面大小
    private Integer pageSize = 10;
    private String keywords;

    public Integer getStartPage() {
        return (currentPage - 1) * pageSize;
    }
}
